﻿using MyAbpFrame.Application.Contracts;
using MyAbpFrame.Domain;
using MyAbpFrame.EntityFrameworkCore;
using System;
using Volo.Abp.Application;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;

namespace MyAbpFrame.Application
{
    [DependsOn(
        typeof(AbpDddApplicationModule),
        typeof(AbpAutoMapperModule),
        typeof(AppDomainModule),
        typeof(AppEntityFrameworkCoreModule),
        typeof(AppApplicationContractsModule)
        )]
    public class AppApplicationModule: AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpAutoMapperOptions>(opt =>
            {
                //配置映射的profile文件 需加上AbpAutoMapperModule依赖模块
                opt.AddProfile<AppApplicationAutomapperProfile>();
            });
        }
    }
}
